<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/page/taglibs.jsp" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>宇信易诚移动管理平台</title>
<%@ include file="/adapter/adapter-macms.jsp" %>
<%@ include file="/adapter/adapter-easyui.jsp" %>
<script src="${ctx}/res/common/js/jquery.min.js" type="text/javascript"></script>
</head>
<body class="easyui-layout">
<div data-options="region:'north',border:false" style="height:44px;padding:0px;overflow:hidden">
      <div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='4v3pUgaR902n7bgrswCbuCLXlo9vAKuk' /></div>
      <div id="header">
        <div id="branding">
          <p id="name"><a title="JSFiddle " href="#" id="home"><span>&alpha;</span></a></p>
        </div>
        <div id="actions">
	<ul class="actionCont collapsed" id="toggleSidebarUl">
		<li class="actionItem"><a class="aiButton" id="toggleSidebar" title="Toggle sidebar" href="#toggle-sidebar"><span>Hide sidebar</span></a></li>
  </ul>
	<ul >
		<li class="actionItem">
			<a class="aiButton" id="run" title="Run (CTRL + Return)" href="#run" onclick="showTreeMenuBar('menu_app1');document.getElementById('a1').click();window.event.returnValue=false;"><span class="icon-caret-right"></span>应用管理</a>
		</li>
		<c:if test="${sessionScope.isadmin=='Y' }">
			<li class="actionItem">
          <a class="aiButton" id="update" title="Update (CTRL + S)" href="#update" onclick="showTreeMenuBar('menu_app2');document.getElementById('a2').click();window.event.returnValue=false;"><span class="icon-pencil"></span>模块管理</a>
        </li>
		<li class="actionItem">
          <a class="aiButton" id="update" title="Update (CTRL + S)" href="#update" onclick="showTreeMenuBar('menu_app3');document.getElementById('a3').click();window.event.returnValue=false;"><span class="icon-pencil"></span>模板管理</a>
        </li>        
		<li class="actionItem">
          <a class="aiButton" id="update" title="Update (CTRL + S)" href="#update" onclick="showTreeMenuBar('menu_app4');document.getElementById('a4').click();window.event.returnValue=false;"><span class="icon-pencil"></span>平台管理</a>
        </li> 
		</c:if>
  </ul>
	
	
	<ul class="actionCont right">
	<li class="actionItem jobboard"><a class="aiButton" href="#"><span class="icon-bullhorn"></span>您好，${sessionScope.name }</a></li>
		<!-- <li class="actionItem jobboard"><a class="aiButton" href="http://jobs.jsfiddle.net"><span class="icon-bullhorn"></span>JSFiddle Job Board</a></li> -->
		<li class="actionItem noIcon"><a class="aiButton" id="login" title="Login" href="${ctx }/j_spring_security_logout">注销<span class="icon-user"></span></a></li>
	</ul>


	</div>
   </div>
</div>
<div data-options="region:'west',title:'导航栏'" style="width:233px;padding:1px;">
	<ul class="easyui-tree" data-options="animate:true,lines:true" id="menu_app1">
			<li>
				<span>应用管理</span>
				<ul>

							<li>
								<span><a id="a1" href='${pageContext.request.contextPath }/appBaseInfo/queryList' target="centerFrame">应用管理</a></span>
							</li>
				</ul>
			</li>
		</ul>
	<ul class="easyui-tree" data-options="animate:true,lines:true" id="menu_app2">
			<li>
				<span>模块管理</span>
				<ul>
					<li>

						<span><a id="a2"  href='${ctx}/plupmodule/modulelist' target="centerFrame">模块管理</a></span>
					</li>
					<li>
						<span><a href='/macms/pagemgr/queryList?pageMakeMode=1' target="centerFrame">页面制作</a></span>
					</li>	
					<li>
						<span><a href='/macms/pagemgr/queryList?pageMakeMode=2' target="centerFrame">自定义页面</a></span>
					</li>								
				</ul>
			</li>
	</ul>
	<ul class="easyui-tree" data-options="animate:true,lines:true" id="menu_app3">
			<li>
				<span>公共页面模板</span>
				<ul>				
					<li>
						<span>增删改查模板</span>
						<ul>
							<li><span><a id="a3"  href='/macms/template/queryList?type=001001' target="centerFrame">新增页面模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=001002' target="centerFrame">修改页面模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=001003' target="centerFrame">列表页面模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=001004' target="centerFrame">查看页面模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=003001' target="centerFrame">阅读页面模板</a></span></li>
						</ul>
					</li>
					<li>
						<span>组合页面模板</span>
						<ul>
							<li><span><a href='/macms/template/queryList?type=002001' target="centerFrame">多标签页模板</a></span></li>
						</ul>
					</li>
					<li>
						<span>框架布局模板</span>
						<ul>
							<li><span><a href='/macms/template/queryList?type=009001' target="centerFrame">首页布局模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=009002' target="centerFrame">登录页面模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=009003' target="centerFrame">锁屏页面模板</a></span></li>
						</ul>
					</li>
					<li>
						<span>功能页面模板</span>
						<ul>
							<li><span><a href='/macms/template/queryList?type=008001' target="centerFrame">常用功能模板</a></span></li>
						</ul>
					</li>																						
				</ul>
			</li>
					<li>
						<span>业务系统模板</span>
						<ul>
							<li><span><a href='/macms/template/queryList?type=101001' target="centerFrame">移动审批模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=101002' target="centerFrame">消费金融模板</a></span></li>
							<li><span><a href='/macms/template/queryList?type=101003' target="centerFrame">现场调查模板</a></span></li>
						</ul>
					</li>				
		</ul>	
	</ul>	
	<ul class="easyui-tree" data-options="animate:true,lines:true" id="menu_app4">
			<li>
				<span>平台管理</span>
				<ul>
					<li>
						<span><a id="a4"  href='/macms/user/appTblUserList' target="centerFrame">平台帐户管理</a></span>
					</li>
					<li>
						<span><a href='${ctx}/platform/publicTradeList' target="centerFrame">平台公共交易</a></span>
					</li>				
					<li>
						<span><a href='${ctx}/version/versionList' target="centerFrame">应用版本管理</a></span>
					</li>				
					<li>
						<span><a href='${ctx}/platform/publicPropList' target="centerFrame">平台运行环境</a></span>
					</li>									
				</ul>
			</li>
			<li>
				<span>平台基础数据</span>
				<ul>
					<li>
						<span><a href='${ctx}/auth/appDicList' target="centerFrame">字典数据管理</a></span>
					</li>				
					<li>
						<span><a href='${ctx}/platform/areaList' target="centerFrame">省市地区数据</a></span>
					</li>
					<li>
						<span><a href='${ctx}/platform/bankList' target="centerFrame">行名行号数据</a></span>
					</li>										
				</ul>
			</li>
		</ul>					
</div>
<div data-options="region:'center',title:' '">
<iframe id="infoFrame" name="centerFrame" src="${pageContext.request.contextPath }/appBaseInfo/queryList" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
</div>
</body>
</html>
<script>
$(function() {
	//使用javascript初始化
	$('#menu_app1').hide();
	$('#menu_app2').hide();
	$('#menu_app3').hide();
	$('#menu_app4').hide();	
	showTreeMenuBar("menu_app1");
});
</script>